﻿// JScript File
NTTHAO.namespace("gridview");

NTTHAO.gridview.ontrmouseover = function() {
    this.className = "rowover " + this.className;
};
NTTHAO.gridview.ontrmouseout = function() {
    this.className = this.className.replace(/rowover /g, "");
};
NTTHAO.gridview.init = function(grid) {
    var tbDataList = null;
    if(grid && grid.length) {
        tbDataList = document.getElementById(grid);
    } else {
        tbDataList = grid;
    }
    var trDataRows = tbDataList.rows;
    for(var i = 0; i < trDataRows.length; i++) {
        var row = trDataRows[i];
        YAHOO.util.Event.on(row, 'mouseover', NTTHAO.gridview.ontrmouseover);
        YAHOO.util.Event.on(row, 'mouseout', NTTHAO.gridview.ontrmouseout);
    }
}